#pragma once
#ifndef QFEDERATE_H
#define QFEDERATE_H

#include "Federate.h"
#include <unordered_map>

class QFederate : public CFederate
{
public:
	QFederate();
	~QFederate();
	void ProcessReceiveInter(RTI::InteractionClassHandle theClass, const RTI::ParameterHandleValuePairSet &theParameters, const char	*tag);
	void ProcessReceiveInter(RTI::InteractionClassHandle theClass, const RTI::ParameterHandleValuePairSet &theParameters, const RTI::FedTime &theFederateTime, const char *tag);
	void Process();
	void Win(string name);
	Position Change(Position pos);
private:
	unordered_map<string, string> Red_Unit;
	unordered_map<string, string> Blue_Unit;
	double show_time = -0.6;
};

#endif